package com.zsrt.java.day20170112.lh.homework;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.Reader;

import org.junit.Test;

public class BufferedReaderTest {
	
	@Test
	public void testName() throws Exception {
		
		File f=new File("c:/a.txt");
		
		Reader in=new FileReader(f);
		
		BufferedReader br=new BufferedReader(in);
		
		String st="";
		while((st=br.readLine())!=null){
			System.out.println(st);
			
		}
		
		br.close();
		in.close();
		
		
	}

}
